<?php
namespace app\validate;
use think\Validate;

class Rechange extends Validate
{
    protected $rule = [
        'num'       => 'require|number|integer|gt:0',
        'tradepass' => 'require',
    ];

    protected $message = [
        'num.require' => '出售数量必须',
        'num.number' => '出售数量必须为数字',
        'num.integer' => '出售数量必须为整数',
        'num.gt' => '出售数量不能为0',
        'tradepass.require' => '二级密码不能为空',
    ];
}


